package org.lex.ftp.ui.actions;

import java.awt.event.ActionEvent;

import org.lex.ftp.FTP;
import org.lex.ftp.util.Resources;

public class DisconnectAction extends FTPAction {
	public DisconnectAction(FTP app) {
		super(app);
		this.setName("Disconnect");
		this.setIcon(Resources.getIcon(Resources.DisconnectIcon));
		this.setEnabled(false);
	}

	public void actionPerformed(ActionEvent e) {
		app.getFTPExplorer().close();
	}
}
